Optimal. Leaf size=120 \[ -\frac {b f \text {Ci}\left (\frac {b}{(c+d x)^2}\right )}{2 d^2}-\frac {\sqrt {b} (d e-c f) \sqrt {2 \pi } C\left (\frac {\sqrt {b} \sqrt {\frac {2}{\pi }}}{c+d x}\right )}{d^2}+\frac {(d e-c f) (c+d x) \sin \left (\frac {b}{(c+d x)^2}\right )}{d^2}+\frac {f (c+d x)^2 \sin \left (\frac {b}{(c+d x)^2}\right )}{2 d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 120, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.438, Rules used = {3514, 3440,
3468, 3433, 3460, 3378, 3383} \begin {gather*} -\frac {b f \text {CosIntegral}\left (\frac {b}{(c+d x)^2}\right )}{2 d^2}-\frac {\sqrt {2 \pi } \sqrt {b} (d e-c f) \text {FresnelC}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {b}}{c+d x}\right )}{d^2}+\frac {(c+d x) (d e-c f) \sin \left (\frac {b}{(c+d x)^2}\right )}{d^2}+\frac {f (c+d x)^2 \sin \left (\frac {b}{(c+d x)^2}\right )}{2 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3378
Rule 3383
Rule 3433
Rule 3440
Rule 3460
Rule 3468
Rule 3514
Rubi steps
\begin {align*} \int (e+f x) \sin \left (\frac {b}{(c+d x)^2}\right ) \, dx &=\frac {\text {Subst}\left (\int \left (d e \left (1-\frac {c f}{d e}\right ) \sin \left (\frac {b}{x^2}\right )+f x \sin \left (\frac {b}{x^2}\right )\right ) \, dx,x,c+d x\right )}{d^2}\\ &=\frac {f \text {Subst}\left (\int x \sin \left (\frac {b}{x^2}\right ) \, dx,x,c+d x\right )}{d^2}+\frac {(d e-c f) \text {Subst}\left (\int \sin \left (\frac {b}{x^2}\right ) \, dx,x,c+d x\right )}{d^2}\\ &=-\frac {f \text {Subst}\left (\int \frac {\sin (b x)}{x^2} \, dx,x,\frac {1}{(c+d x)^2}\right )}{2 d^2}-\frac {(d e-c f) \text {Subst}\left (\int \frac {\sin \left (b x^2\right )}{x^2} \, dx,x,\frac {1}{c+d x}\right )}{d^2}\\ &=\frac {(d e-c f) (c+d x) \sin \left (\frac {b}{(c+d x)^2}\right )}{d^2}+\frac {f (c+d x)^2 \sin \left (\frac {b}{(c+d x)^2}\right )}{2 d^2}-\frac {(b f) \text {Subst}\left (\int \frac {\cos (b x)}{x} \, dx,x,\frac {1}{(c+d x)^2}\right )}{2 d^2}-\frac {(2 b (d e-c f)) \text {Subst}\left (\int \cos \left (b x^2\right ) \, dx,x,\frac {1}{c+d x}\right )}{d^2}\\ &=-\frac {b f \text {Ci}\left (\frac {b}{(c+d x)^2}\right )}{2 d^2}-\frac {\sqrt {b} (d e-c f) \sqrt {2 \pi } C\left (\frac {\sqrt {b} \sqrt {\frac {2}{\pi }}}{c+d x}\right )}{d^2}+\frac {(d e-c f) (c+d x) \sin \left (\frac {b}{(c+d x)^2}\right )}{d^2}+\frac {f (c+d x)^2 \sin \left (\frac {b}{(c+d x)^2}\right )}{2 d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.20, size = 95, normalized size = 0.79 \begin {gather*} -\frac {b f \text {Ci}\left (\frac {b}{(c+d x)^2}\right )+2 \sqrt {b} (d e-c f) \sqrt {2 \pi } C\left (\frac {\sqrt {b} \sqrt {\frac {2}{\pi }}}{c+d x}\right )+(c+d x) (-2 d e+c f-d f x) \sin \left (\frac {b}{(c+d x)^2}\right )}{2 d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 101, normalized size = 0.84
method | result | size |
derivativedivides | \(\frac {-\left (c f -d e \right ) \left (d x +c \right ) \sin \left (\frac {b}{\left (d x +c \right )^{2}}\right )+\left (c f -d e \right ) \sqrt {b}\, \sqrt {2}\, \sqrt {\pi }\, \FresnelC \left (\frac {\sqrt {b}\, \sqrt {2}}{\sqrt {\pi }\, \left (d x +c \right )}\right )+\frac {f \left (d x +c \right )^{2} \sin \left (\frac {b}{\left (d x +c \right )^{2}}\right )}{2}-\frac {f b \cosineIntegral \left (\frac {b}{\left (d x +c \right )^{2}}\right )}{2}}{d^{2}}\) | \(101\) |
default | \(\frac {-\left (c f -d e \right ) \left (d x +c \right ) \sin \left (\frac {b}{\left (d x +c \right )^{2}}\right )+\left (c f -d e \right ) \sqrt {b}\, \sqrt {2}\, \sqrt {\pi }\, \FresnelC \left (\frac {\sqrt {b}\, \sqrt {2}}{\sqrt {\pi }\, \left (d x +c \right )}\right )+\frac {f \left (d x +c \right )^{2} \sin \left (\frac {b}{\left (d x +c \right )^{2}}\right )}{2}-\frac {f b \cosineIntegral \left (\frac {b}{\left (d x +c \right )^{2}}\right )}{2}}{d^{2}}\) | \(101\) |
risch | \(-\frac {e b \sqrt {\pi }\, \erf \left (\frac {\sqrt {-i b}}{d x +c}\right )}{2 d \sqrt {-i b}}+\frac {f b \expIntegral \left (1, -\frac {i b}{\left (d x +c \right )^{2}}\right )}{4 d^{2}}+\frac {c f b \sqrt {\pi }\, \erf \left (\frac {\sqrt {-i b}}{d x +c}\right )}{2 d^{2} \sqrt {-i b}}-\frac {e b \sqrt {\pi }\, \erf \left (\frac {\sqrt {i b}}{d x +c}\right )}{2 d \sqrt {i b}}+\frac {f b \expIntegral \left (1, \frac {i b}{\left (d x +c \right )^{2}}\right )}{4 d^{2}}+\frac {c f b \sqrt {\pi }\, \erf \left (\frac {\sqrt {i b}}{d x +c}\right )}{2 d^{2} \sqrt {i b}}-\frac {\left (e \left (-d x -c \right )-\frac {f \left (d x +c \right )^{2}}{2 d}-\frac {c f \left (-d x -c \right )}{d}\right ) \sin \left (\frac {b}{\left (d x +c \right )^{2}}\right )}{d}\) | \(222\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 158, normalized size = 1.32 \begin {gather*} -\frac {b f \operatorname {Ci}\left (\frac {b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right ) + b f \operatorname {Ci}\left (-\frac {b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right ) - 4 \, \sqrt {2} {\left (\pi c d f - \pi d^{2} e\right )} \sqrt {\frac {b}{\pi d^{2}}} \operatorname {C}\left (\frac {\sqrt {2} d \sqrt {\frac {b}{\pi d^{2}}}}{d x + c}\right ) - 2 \, {\left (d^{2} f x^{2} - c^{2} f + 2 \, {\left (d^{2} x + c d\right )} e\right )} \sin \left (\frac {b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right )}{4 \, d^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (e + f x\right ) \sin {\left (\frac {b}{c^{2} + 2 c d x + d^{2} x^{2}} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sin \left (\frac {b}{{\left (c+d\,x\right )}^2}\right )\,\left (e+f\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________